<template>
  <div>
    <v-header>
      <div class="nav-tab">
        <div class="flex-center">
          <router-link to="/shoe" :class="{'nav-tab-act':!notShoe}" tag="div">潮鞋榜单</router-link>
          <router-link to="/shoe/sales" :class="{'nav-tab-act':notShoe}" tag="div">发售日历</router-link>
        </div>
      </div>
    </v-header>
    <router-view></router-view>
  </div>
</template>
<script>
export default {
  computed: {
    notShoe() {
      return this.$route.path.toLowerCase() !== '/shoe'
    }
  }
}
</script>
<style scoped>
.nav-tab {
  width: 75%;
  text-align: center;
  font-size: 14px;
  display: flex;
}

.nav-tab>div {
  width: 80%;
  margin: auto;
  color: #fff;
  border: 1px solid #fff;
  overflow: hidden;
  border-radius: 5px;
}

.nav-tab>div div {
  width: 50%;
  height: 24px;
  line-height: 24px;
  transition: all .2s cubic-bezier(0.6, -0.28, 0.735, 0.045);
}

.nav-tab-act {
  color: #333;
  background-color: #fff;
}

.nav-top-light .nav-tab>div {
  color: #333;
  border: 1px solid #333;
}

.nav-top-light .nav-tab-act {
  color: #fff;
  background-color: #333;
}
</style>